package Demo2;

public class Test20 {
    public static void main(String[] args) {
        MyStack myStack=new MyStack();
       myStack.push(12);
       myStack.push(15);
        myStack.push(22);
       myStack.push(25);
        myStack.display();
        int ret=myStack.peek();
        System.out.println(ret);
        int ret2=myStack.pop();
        System.out.println("要删除的元素="+ret2);
        System.out.println("删完之后");
        myStack.display();
    }
}
